package com.monster.admin.user.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique;
import com.monster.starter.core.common.entity.BaseEntity;
import lombok.Data;

/**
 * 用户授权表
 * @author kuang
 */
@Data
@TableName
@TableComment("用户授权信息表")
public class SysUserAuth extends BaseEntity {
    /**
     * 用户编码
     */
    @TableField
    @Column(length = 32, isNull = false, comment = "用户编码")
    private String userCode;
    /**
     * 用户登录名称
     */
    @Unique
    @TableField
    @Column(length = 32, isNull = false, comment = "用户登录名称")
    private String userName;
    /**
     * 登录密码
     */
    @TableField
    @Column(length = 100, isNull = false, comment = "登录密码")
    private String password;
}
